import request from "@/utils/request";
/**
 * 饲喂列表
 * @param {*} data
 * @returns
 */
export function API_feedList(params) {
  return request({
    url: "/feed/list",
    method: "get",
    params,
  });
}

/**
 * 饲喂新增
 * @returns
 */
export function API_feedCreate(data) {
  return request({
    url: "/feed/create",
    method: "post",
    data,
  });
}

/**
 * 饲喂修改
 * @returns
 */
export function API_feedEdit(data) {
  return request({
    url: `/feed/edit/${data.code}`,
    method: "put",
    data,
  });
}

/**
 * 饲喂删除
 * @returns
 */
export function API_feedDelete(data) {
  return request({
    url: `/feed/delete/${data.code}`,
    method: "delete",
  });
}

/**
 * 饲喂记录
 * @returns
 */
export function API_feedGet(params) {
  return request({
    url: "/feed/get",
    method: "get",
    params,
  });
}
